<%@ page import="LaunchRamp.Kid" %>



<div class="fieldcontain ${hasErrors(bean: kidInstance, field: 'firstName', 'error')} ">
	<label for="firstName">
		<g:message code="kid.firstName.label" default="First Name" />
		
	</label>
	<g:textField name="firstName" pattern="${kidInstance.constraints.firstName.matches}" value="${kidInstance?.firstName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: kidInstance, field: 'lastName', 'error')} ">
	<label for="lastName">
		<g:message code="kid.lastName.label" default="Last Name" />
		
	</label>
	<g:textField name="lastName" pattern="${kidInstance.constraints.lastName.matches}" value="${kidInstance?.lastName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: kidInstance, field: 'email', 'error')} ">
	<label for="email">
		<g:message code="kid.email.label" default="Email" />
		
	</label>
	<g:field type="email" name="email" value="${kidInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: kidInstance, field: 'address', 'error')} ">
	<label for="address">
		<g:message code="kid.address.label" default="Address" />
		
	</label>
	<g:textField name="address" pattern="${kidInstance.constraints.address.matches}" value="${kidInstance?.address}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: kidInstance, field: 'zip', 'error')} ">
	<label for="zip">
		<g:message code="kid.zip.label" default="Zip" />
		
	</label>
	<g:textField name="zip" pattern="${kidInstance.constraints.zip.matches}" value="${kidInstance?.zip}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: kidInstance, field: 'age', 'error')} required">
	<label for="age">
		<g:message code="kid.age.label" default="Age" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="age" type="number" min="8" max="17" value="${kidInstance.age}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: kidInstance, field: 'phone', 'error')} ">
	<label for="phone">
		<g:message code="kid.phone.label" default="Phone" />
		
	</label>
	<g:textField name="phone" pattern="${kidInstance.constraints.phone.matches}" value="${kidInstance?.phone}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: kidInstance, field: 'guardianFirstName', 'error')} ">
	<label for="guardianFirstName">
		<g:message code="kid.guardianFirstName.label" default="Guardian First Name" />
		
	</label>
	<g:textField name="guardianFirstName" pattern="${kidInstance.constraints.guardianFirstName.matches}" value="${kidInstance?.guardianFirstName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: kidInstance, field: 'guardianLastName', 'error')} ">
	<label for="guardianLastName">
		<g:message code="kid.guardianLastName.label" default="Guardian Last Name" />
		
	</label>
	<g:textField name="guardianLastName" pattern="${kidInstance.constraints.guardianLastName.matches}" value="${kidInstance?.guardianLastName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: kidInstance, field: 'guardianEmail', 'error')} ">
	<label for="guardianEmail">
		<g:message code="kid.guardianEmail.label" default="Guardian Email" />
		
	</label>
	<g:field type="email" name="guardianEmail" value="${kidInstance?.guardianEmail}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: kidInstance, field: 'guardianPhone', 'error')} ">
	<label for="guardianPhone">
		<g:message code="kid.guardianPhone.label" default="Guardian Phone" />
		
	</label>
	<g:textField name="guardianPhone" pattern="${kidInstance.constraints.guardianPhone.matches}" value="${kidInstance?.guardianPhone}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: kidInstance, field: 'about', 'error')} ">
	<label for="about">
		<g:message code="kid.about.label" default="About" />
		
	</label>
	<g:textArea name="about" cols="40" rows="5" maxlength="2000" value="${kidInstance?.about}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: kidInstance, field: 'image', 'error')} required">
	<label for="image">
		<g:message code="kid.image.label" default="Image" />
		<span class="required-indicator">*</span>
	</label>
	<input type="file" id="image" name="image" />
</div>

<div class="fieldcontain ${hasErrors(bean: kidInstance, field: 'verified', 'error')} ">
	<label for="verified">
		<g:message code="kid.verified.label" default="Verified" />
		
	</label>
	<g:checkBox name="verified" value="${kidInstance?.verified}" />
</div>

